<%= render :partial => "shared/errors", :locals => {:obj => @message} %>

  <div class="group">
    <label class="label label1">To：</label>
    <%= text_field_tag :to_list, @to_list, :class => "text_field" %>
    <%= link_to_prototype_modal "宛先選択",
                                    "message_destination",
                                    {:title => "Select message destinations",
                                     :top => 100, :left => 100,
                                     :width => 500, :height => 300,
                                     :url => portal_message_destinations_path(:target_id => "to_list")} %>
  </div>

  <div class="group">
    <label class="label label1">Cc：</label>
    <%= text_field_tag :cc_list, @cc_list, :class => "text_field" %>
    <%= link_to_prototype_modal "宛先選択",
                                    "message_destination",
                                    {:title => "Select message destinations",
                                     :top => 100, :left => 100,
                                     :width => 500, :height => 300,
                                     :url => portal_message_destinations_path(:target_id => "cc_list")} %>
  </div>

  <div class="group">
    <%=  label_for("タイトル：", @message, :subject, "label label1") %>
    <%= text_field_tag :subject, @message.subject, :class => "text_field" %>
  </div>

  <div class="group">
    <label class="label label2">本文フォーマット形式：</label>
    <%= select_tag :format_type, 
                     select_options_from_array(Message.format_types, @format_type),
                     :class => "select" %>
  　<%= format_description_links %>
  </div>

  <div class="group">
    <%=  label_for("本文：", @message, :body, "label label1") %>
    <%= text_area_tag :body, @message.body, :class => "text_area", :rows => 12 %>
  </div>

  <div class="group">
    <label class="label label3">添付ファイル：</label>
    <div class="uploadfile">
      No.1: <%= file_field_tag "uploaded_data[]", :class => "file_field" %><br />
      No.2: <%= file_field_tag "uploaded_data[]", :class => "file_field" %><br />
      No.3: <%= file_field_tag "uploaded_data[]", :class => "file_field" %><br />
    </div>
  </div>

